package pharao.domain;

import java.util.Collection;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;

@Entity
public class BuchStatusSeite {
	
	/**
	 * @uml.property  name="buchDesWissens"
	 * @uml.associationEnd  inverse="buchStatusSeite:pharao.domain.BuchDesWissens"
	 */
	private BuchDesWissens buchDesWissens;

	/**
	 * @uml.property  name="collectionOrtStatus"
	 * @uml.associationEnd  multiplicity="(0 -1)" aggregation="composite" inverse="buchStatusSeite:pharao.domain.OrtStatus"
	 */
	private Collection<OrtStatus> collectionOrtStatus;

	private int id;

	/**
	 * Getter of the property <tt>buchDesWissens</tt>
	 * @return  Returns the buchDesWissens.
	 * @uml.property  name="buchDesWissens"
	 */
	@OneToOne
	public BuchDesWissens getBuchDesWissens() {
		return buchDesWissens;
	}

	/**
	 * Getter of the property <tt>collectionOrtStatus</tt>
	 * @return  Returns the collectionOrtStatus.
	 * @uml.property  name="collectionOrtStatus"
	 */
	@OneToMany
	public Collection<OrtStatus> getCollectionOrtStatus() {
		return collectionOrtStatus;
	}

	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}

	/**
	 * Setter of the property <tt>buchDesWissens</tt>
	 * @param buchDesWissens  The buchDesWissens to set.
	 * @uml.property  name="buchDesWissens"
	 */
	public void setBuchDesWissens(BuchDesWissens buchDesWissens) {
		this.buchDesWissens = buchDesWissens;
	}

	/**
	 * Setter of the property <tt>collectionOrtStatus</tt>
	 * @param collectionOrtStatus  The collectionOrtStatus to set.
	 * @uml.property  name="collectionOrtStatus"
	 */
	public void setCollectionOrtStatus(Collection<OrtStatus> collectionOrtStatus) {
		this.collectionOrtStatus = collectionOrtStatus;
	}

	public void setId(int id) {
		this.id = id;
	}

}
